<%@ page contentType="text/html;charset=UTF-8" language="java" import="java.util.*" pageEncoding="UTF-8"%>


 <!DOCTYPE HTML >
 <html>
   <head>
   <link href="form.css" rel="stylesheet" type="text/css">
     <title>登录页面</title>
     
     <script>
     function checknull(){
    	 /*
    	 
    	 
    	 if(name.value==null || id.value==null || phone.value==null){
    		 window.alert("带*为必填项！");
    	 }
    	 else{
    		 addinformation.submit();
    	 }
    	 
    	 
    	 
    	 
    	 
    */
    	 addinformation.submit();
     }
     
     
     
     </script>
   </head>
   <body background="bg2.jpg" style=" background-repeat:no-repeat;
      background-size:100%100%;background-attachment:fixed;">
   
   
   <br>
<br>
<br>
<br>
<br><br>
<br>
<br>
<br>
<br>
<%
    Object message = session.getAttribute("message2");
    if(message!=null && !"".equals(message)){

 %>
      <script type="text/javascript">
          alert("<%=message%>");
      </script>
      
  <%} %>
  
  <form action="Insert" method="post" class="elegant-aero" name="addinformation">
<h1>个人通讯录信息（带*为必填项）
<span>Please fill all the texts in the fields.</span>
</h1>
<label>
<span>*学号 :</span>
<input  type="text" name="id" placeholder="学号" />
</label>

<label>
<span>*姓名 :</span>
<input  type="text" name="name" placeholder="姓名" />
</label>

<label>
<span>*电话 :</span>
<input  type="text" name="phone" placeholder="电话" />
</label>

<label>
<span>QQ号 :</span>
<input  type="text" name="qq" placeholder="QQ号" />
</label>

<label>
<span>Email :</span>
<input  type="email" name="email" placeholder="电子邮件地址" />
</label>

<label>
<span>地址 :</span>
<input  type="text" name="address" placeholder="地址" />
</label>

<label>
<span>&nbsp;</span>
<input type="button" class="button" value="添加" onClick="checknull()" />
</label>
</form>
  
  
   
   </body>
 </html>